package cn.doourbest.learnnetty.learnnetty;

import cn.doourbest.learnnetty.learnnetty.server.ProxyNettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

public class LearnnettyApplication {

    public static void main(String[] args) throws Exception {

        int port = 8888;
        if (args.length > 0) {
            port = Integer.parseInt(args[0]);
        }

        new ProxyNettyServer(port).run();
    }
}
